﻿@using SDCloudSolution.SDCloud.Web.Models.Widgets
@{
    ViewBag.Title = "Home Page";
    Layout = MVC.Shared.Views._AuthorizedLayout;
}

@section scripts {
    <script async src="@Url.Content("Scripts/sdCloud/model.run.statistics.widget.js")"></script>
}

<h1 class="page-header">
    SDCloud Dashboard
</h1>

<div class="oj-flex oj-flex-items-pad">
    <div class="oj-sm-12 oj-md-4 oj-lg-4 oj-flex-item">
        Widget 1
    </div>
    <div class="oj-sm-12 oj-md-4 oj-lg-4 oj-flex-item">
        <div class="oj-panel oj-margin oj-panel-shadow-md">
            <h3 class="oj-header-border">Model runs statistics</h3>
            @Html.Partial(MVC.Shared.Views.Controls._WidgetContainer, new WidgetViewModel
            {
                WidgetAction = MVC.ModelRuns.ModelRunStatisticsWidget().Result
            })
        </div>
    </div>
    <div class="oj-sm-12 oj-md-4 oj-lg-4 oj-flex-item">
        <div class="oj-panel oj-margin oj-panel-shadow-md">
            <h3 class="oj-header-border">Active model run</h3>
            @Html.Partial(MVC.Shared.Views.Controls._WidgetContainer, new WidgetViewModel
            {
                WidgetAction = MVC.ModelRuns.ActiveModelRunsWidget().Result
            })
        </div>
    </div>

</div>